package Thread;

public class Thread01 extends Thread{
    public void run(){
        for(int i=0;i<100;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }

    public static void main(String[] args) {
        Thread01 t1=new Thread01();
        Thread01 t2=new Thread01();
        t1.start();
        t2.start();
    }
}
